/*
 * IDataBlock.java
 *
 * Created on July 16, 2007, 2:12 PM
 *
 * Copyright (C) 2007 Akhmad Fathonih (akhmadf@gmail.com)
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

package com.gamatechno.anybinding.core;

import java.io.Serializable;

/**
 *
 * @author geek
 */
public interface IDataBlock extends Serializable {
    void setBeginIndex(int idx);

    void setByteSource(byte[] source);

    void setEndIndex(int idx);
    
    void setParent(IDataBlock parent);
    
    void setMarshallType(String marshallType);

    int getInternalID();
    
    void setAlias(String alias);

    byte[] value(boolean useCache);
    
}
